package org.jeecg.modules.demo.drfIndividualReview.mapper;

import java.util.Date;

import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.drfIndividualReview.entity.DrfIndividualReview;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 个人审核表
 * @Author: jeecg-boot
 * @Date:   2025-10-17
 * @Version: V1.0
 */
public interface DrfIndividualReviewMapper extends BaseMapper<DrfIndividualReview> {

    /**
     * 根据论文id查询个人审核表
     * @param id
     * @return
     */
    @Select("select * from drf_individual_review where papers_id = #{id}")
    DrfIndividualReview getByPaperId(String id);

    /**
     * 根据论文id查询个人审核表
     *
     * @param id
     * @return
     */
    @Select("select review_opinions_id from drf_individual_review where papers_id = #{id}")
    String[] getOpinionsIdByPaperId(String id);


    @Select("select end_time from drf_individual_review where papers_id = #{id} and teacher_id = #{teacherId}")
    Date getEndTime(String id, String teacherId);
}
